package com.ruoyi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 对象 adv_incomedetail
 *
 * @author ruoyi
 * @date 2024-05-13
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class AdvIncomedetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long advIncomedetailId;
    @Excel(name = "订单结算id", readConverterExp = "$column.readConverterExp()")
    private Long advIncomeId;
    @Excel(name = "订单id", readConverterExp = "$column.readConverterExp()")
    private Long advOrdersId;

    public AdvIncomedetail(Long advIncomedetailId, Long advIncomeId, Long advOrdersId) {
        this.advIncomedetailId = advIncomedetailId;
        this.advIncomeId = advIncomeId;
        this.advOrdersId = advOrdersId;
    }

    // 订单表中的字段
    @Excel(name = "订单号", readConverterExp = "$column.readConverterExp()")
    private String ordersno;
    @Excel(name = "订单金额", readConverterExp = "$column.readConverterExp()")
    private Long orderAmount;
    @Excel(name = "订单日期", readConverterExp = "$column.readConverterExp()")
    private Date advOrdersdate;

    // 收益表的字段
    @Excel(name = "佣金比例", readConverterExp = "$column.readConverterExp()")
    private Long taxRate;
    @Excel(name = "结算会员id", readConverterExp = "$column.readConverterExp()")
    private String advMembersId;
}
